package thread.pool;
//Same example as above by annonymous class that extends Thread class:
//Program of performing two tasks by two threads
public class MultiThreadingUsingAnnonymousClass {
	public static void main(String[] args) {
	Thread t1 = new Thread(){
	public void run(){
	System.out.println("First Task...");	
	}
};
	Thread t2 = new Thread(){
		public void run(){
			System.out.println("Second Task..");
		}
	};
	t1.start();
	t2.start();
}
}
